﻿package com.kgame5.xtank3d.model.tank.fsms.move {
import kgame5.kgu.spacial.SpacialManager;

import com.kgame5.xtank3d.GameEnum;
import com.kgame5.xtank3d.model.tank.fsms.TankState;
import com.kgame5.xtank3d.vo.MyTankVO;

public class StateStand extends TankState{

	public function StateStand(pvo:MyTankVO){
		super(GameEnum.STATE_TANK_STAND, pvo);
	}
	
	//进入状态
	override public function enter(info:Object=null):void{
		
	}
	
	//执行状态
	override public function update():void{
		
		//刹车
		v.x=0;
		v.z=0;
		
		//如果有按键，则进入移动状态
		if(tankVO.input.dir != SpacialManager.DIR_NULL){
			this.fsm.SwitchState(GameEnum.STATE_TANK_MOVE,null);
		}
	}
	
	//退出状态
	override public function exit():void{
		
	}
	
}//end of class
}
